﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace RN.ERP.DTO
{
    public class tb_Emp_Manager
    {
        public Guid EmpGuid { get; set; }
        public Guid? CorpGuid { get; set; }
        public Int32 ID { get; set; }
        public Int32? ClassId { get; set; }
        public Int32? CorpClassID { get; set; }
        private string typeFlag;
        public String TypeFlag
        {
            get
            {
                return typeFlag;
            }
            set
            {
                typeFlag = value;
                if (string.IsNullOrEmpty(_typeFlagTitle))
                {
                    switch (value)
                    {
                        case "3":
                            _typeFlagTitle = "法定代表人";
                            break;
                        case "4":
                            _typeFlagTitle = "企业负责人";
                            break;
                        case "5":
                            _typeFlagTitle = "技术负责人";
                            break;
                        case "7":
                            _typeFlagTitle = "财务负责人";
                            break;
                        case "8":
                            _typeFlagTitle = "经营负责人";
                            break;
                        default:
                            _typeFlagTitle = "";
                            break;
                    }
                }
            }
        }
        public String Name { get; set; }
        public Byte? Sex { get; set; }
        public String IDCard { get; set; }
        public String Tel { get; set; }
        public Int16? SpecialityID { get; set; }
        public String SpecialityTxt { get; set; }
        public String Duty { get; set; }
        public String DutyLevel { get; set; }
        public String Education { get; set; }
        public DateTime? StartTime { get; set; }
        public String InsuranceNum { get; set; }
        public String Remark { get; set; }
        public Int32? IsLeave { get; set; }
        public String FlowCode { get; set; }
        public string StrFlowCode { get; set; }
        public Guid? AuthorGuid { get; set; }
        public DateTime? CreatDate { get; set; }
        public Boolean? IsDel { get; set; }
        public String DoMajor { get; set; }
        public Int32? YaZhengCount { get; set; }
        public Int32? DogID { get; set; }
        public Int32? BithdayYear { get; set; }
        public Int32? BithdayMonth { get; set; }
        public String ZhiWu { get; set; }
        public String AreaCode { get; set; }
        public String CorpID { get; set; }
        public Int32? oldid { get; set; }
        public String pwd { get; set; }
        public String corpName { get; set; }
        public Int32? domajorint { get; set; }
        public Int32? dogisZero { get; set; }
        /// <summary>
        /// 企业联系电话
        /// </summary>
        public String corpTel { get; set; }
        /// <summary>
        /// 企业地址
        /// </summary>
        public String corpAddress { get; set; }
        /// <summary>
        /// 档案存档号
        /// </summary>
        public String ArchiveCode { get; set; }
        /// <summary>
        /// 人事档案存档单位
        /// </summary>
        public String ArchiveCorp { get; set; }
        /// <summary>
        /// 存档单位联系电话
        /// </summary>
        public String ArchiveCorpTel { get; set; }
        /// <summary>
        /// 存档单位联系人
        /// </summary>
        public String ArchiveCorpLinkMan { get; set; }
        /// <summary>
        /// 存档备注
        /// </summary>
        public String ArchiveRemark { get; set; }
        /// <summary>
        /// 缴费代码
        /// </summary>
        public String InsutanceCode { get; set; }
        /// <summary>
        /// 缴费单位
        /// </summary>
        public String InsutanceCorp { get; set; }
        /// <summary>
        /// 缴费单位联系电话
        /// </summary>
        public String InsutanceCorpTel { get; set; }
        /// <summary>
        /// 缴费单位联系人
        /// </summary>
        public String InsutanceCorpLinkMan { get; set; }
        /// <summary>
        /// 缴费备注
        /// </summary>
        public String InsutanceRemark { get; set; }
        public Boolean? F_del_20101222 { get; set; }
        public String bCanBid_0210 { get; set; }
        public String EmployeeType { get; set; }
        public DateTime? Birthday { get; set; }
        public Int32? tb_Emp_IsOuter { get; set; }
        public String FlowCode_zjzx { get; set; }
        public String OrginazationCode { get; set; }
        /// <summary>
        /// 总监个人信息完善审核用
        /// </summary>
        public String FlowCode2 { get; set; }
        public String IDType { get; set; }
        public String MobileTel { get; set; }
        public String EMail { get; set; }
        public String GraduatedSchool { get; set; }
        public String zgzcCode { get; set; }
        public String PhotoFile { get; set; }
        public Byte IfHaveCA { get; set; }
        public Int32? empdogid { get; set; }
        public Byte? isShenBao { get; set; }
        public Byte? isFreeze { get; set; }
        public Byte? isZZEmp { get; set; }
        public String MsgRoles { get; set; }
        public String bCanBid { get; set; }
        public string flowcode1 { get; set; }
        public string TypeName { get; set; }
        public DateTime? zbdlYear { get; set; }
        public String zbdlBusinesscode { get; set; }
        /// <summary>
        /// 招标管理年限
        /// </summary>
        public Int32? zbdlManageYear { get; set; }
        public string Score { get; set; }

        /// <summary>
        /// 转出标识
        /// </summary>
        public Boolean? IsExit { get; set; }
        public string Description { get; set; }

        private string _typeFlagTitle;
        public string TypeFlagTitle
        {
            set
            {
                _typeFlagTitle = value;
            }
            get
            {
                return _typeFlagTitle; 
            }
        }

        #region 职称

        /// <summary>
        /// Id
        /// </summary>		
        public int? PostId { get; set; }
        /// <summary>
        /// Post_psZG
        /// </summary>		
        public string Post_psZG { get; set; }
        /// <summary>
        /// 职称-评审资格,对应a_PostPszgDefine.Code,默认为-1
        /// </summary>		
        public string Post_psZGCode { get; set; }
        /// <summary>
        /// 职称-从事专业
        /// </summary>		
        public string Post_Major { get; set; }
        /// <summary>
        /// 职称-工作单位
        /// </summary>		
        public string Post_Corp { get; set; }
        /// <summary>
        /// 职称-评审组织
        /// </summary>		
        public string Post_psOrg { get; set; }
        /// <summary>
        /// Post_psDate
        /// </summary>		
        public DateTime? Post_psDate { get; set; }

        public string Post_Title { get; set; }
        #endregion

        #region 资格证书

        public string StrTitleDetails { get; set; }
        public Guid? EducationGuid { get; set; }
        public int? TypeFlags { get; set; }
        public string CertificateSpecialty { get; set; }
        public string CertificateLevel { get; set; }
        public string CertificateName { get; set; }
        public string CertificateCode { get; set; }
        public int? CertClassId { get; set; }
        public string StampCode { get; set; }
        public string CSCode { get; set; }
        public string CLCode { get; set; }

        #endregion

        #region 考核分数
        public decimal? Year_Sorce { get; set; }
        #endregion

        /// <summary>
        /// 企业审核状态
        /// </summary>
        public string CorpFlowCode { get; set; }

        public String TypeFlagName { get; set; }

        /// <summary>
        /// 人员审核地区
        /// </summary>
        public string FlowAreaCode { get; set; }

        /// <summary>
        /// 专家库别
        /// </summary>
        public String DBType { get; set; }
        public String BankAccName { get; set; }
        public String BankAccNo { get; set; }

        /// <summary>
        /// 专家证号
        /// </summary>		
        public string ExpertCardID { get; set; }
        /// <summary>
        /// 专家是否健康
        /// </summary>		
        public Byte? IsHealth { get; set; }
        /// <summary>
        /// 专家是否操作计算机
        /// </summary>		
        public Byte? IsComputer { get; set; }
        /// <summary>
        /// isSeniorExpert
        /// </summary>		
        public bool? IsSeniorExpert { get; set; }
        /// <summary>
        /// ExpertCardBeginDate
        /// </summary>		
        public DateTime? ExpertCardBeginDate { get; set; }
        /// <summary>
        /// ExpertCardEndDate
        /// </summary>		
        public DateTime? ExpertCardEndDate { get; set; }
        /// <summary>
        /// SeniorExpertCardDate
        /// </summary>		
        public DateTime? SeniorExpertCardDate { get; set; }
        public string ICCard { get; set; }
        public int? GroupID { get; set; }
        public int? GroupTreeID { get; set; }
        #region 专家专业
        public String MainSpec { get; set; }
        public String MainSpecCode { get; set; }
        public String OtherSpecs { get; set; }

        public Int32? AppID { get; set; }

        #endregion

        #region 证书职称统计
        public string ZCJZSStr { get; set; }
        public string ZCStr { get; set; }
        public string GJGWStr { get; set; }
        public string JZYJSStr { get; set; }
        public string ZYJNStr { get; set; }
        public string SafeStr { get; set; }
        public string TZZYStr { get; set; }
        public string QTJSStr { get; set; }
        #endregion
        
    }
}
